﻿<!DOCTYPE HTML>
<html>
<head>
	<meta content="text/html;charset=UTF-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
	<meta name="viewport" content="width=device-width, initial-scale=1" />
	<title>登录页</title>

	<link href="/plugins/bootstrap-3.3.0/css/bootstrap.min.css" rel="stylesheet"/>
	<link href="/plugins/material-design-iconic-font-2.2.0/css/material-design-iconic-font.min.css" rel="stylesheet"/>
	<link href="/plugins/waves-0.7.5/waves.min.css" rel="stylesheet"/>
	<link href="/plugins/checkbix/css/checkbix.min.css" rel="stylesheet"/>
	<link href="/css/login.css" rel="stylesheet"/>
</head>
<body>
<div id="login-window">
 	<form  id="loginForm" >
 	<div th:text="${error}" />
	<div class="input-group m-b-20">
		<span class="input-group-addon"><i class="zmdi zmdi-account"></i></span>
		<div class="fg-line">
			<input id="username" type="text" class="form-control" name="username" placeholder="帐号"  required="true" autofocus="true" />
		</div>
	</div>
	<div class="input-group m-b-20">
		<span class="input-group-addon"><i class="zmdi zmdi-male"></i></span>
		<div class="fg-line">
			<input id="password" type="password" class="form-control" name="password" placeholder="密码" required="true" />
		</div>
	</div>
<!-- 	<div><input type="submit" value="登录"/></div> -->
<!-- 	<div class="clearfix" /> -->
<!-- 	<div class="checkbox"> -->
<!-- 		<input id="rememberMe" type="checkbox" class="checkbix" data-text="自动登录" name="rememberMe" /> -->
<!-- 	</div> -->
	<a id="login-bt" href="#" onclick="loginSubmit();" class="waves-effect waves-button waves-float"><i class="zmdi zmdi-arrow-forward"></i></a>
	</form>
	
</div>
<script src="/plugins/jquery.1.12.4.min.js"></script>
<script src="/plugins/bootstrap-3.3.0/js/bootstrap.min.js"></script>
<script src="/plugins/waves-0.7.5/waves.min.js"></script>
<script src="/plugins/checkbix/js/checkbix.min.js"></script>

<script src="/js/login.js"></script>
<script type="text/javascript">
function loginSubmit(){
	document.getElementById("loginForm").method = "post";
	document.getElementById("loginForm").target = "_self";
	document.getElementById("loginForm").action = "/essay/login";
    $("#loginForm").submit();
}
</script>
</body>
</html>